package com.sparsearr.datastructures.itheima.zhishu;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @Author: ZhaoTR
 * @Date: Created in 2025/4/19 16:11
 * @Description: 找质数
 * @Version: 1.0
 */

public class FindZhiNum {
    private static final Logger logger = LogManager.getLogger(FindZhiNum.class);

    public static void main(String[] args) {
        for (int i = 101; i < 201; i++) {
            boolean flag = true;
            for (int j = 2; j < 100; j++) {
                if (i % j == 0) {
                    flag = false;
                    break;
                }
            }
            if (flag) {
                System.out.println("当前数字" + i + "是一个质数");
            }
        }
    }
}
